<?php

// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;

class CustomerTableSeeder extends Seeder {

	public function run()
	{
		$faker = Faker::create();

		foreach(range(1, 10) as $index)
		{
			Customer::create([
                'staff_id'   => $faker->randomNumber(1),
                'nickname'    => $faker->sentence($nbWords = 1),
                'name'    => $faker->sentence($nbWords = 1),
                'tel'   => rand('13011111111','18899999999'),
                'address'   => $faker->sentence($nbWords = 5),
                'info' => '{"height":"173cm","weight":"60kg","waist":29,"neck":88,"shoe":42,"job":"IT","age":"33","fondness":"\u8fd0\u52a8\u578b\u65f6\u5c1a\u6f6e\u4eba","other":"\u65e0"}',
			]);
		}
	}

}